package com.etc.dao;

import com.etc.pojo.Video;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VideoOfTypeDao {

    /**
     * 根据二级分类编号查询视频
     * @param targetIdList
     * @param partIdList
     * @param degreeIdList
     * @param apparatusIdList
     * @return
     */
    public List<Video> queryVideoByType(@Param("targetIdList") List<Integer> targetIdList,
                                        @Param("partIdList") List<Integer> partIdList,
                                        @Param("degreeIdList") List<Integer> degreeIdList,
                                        @Param("apparatusIdList") List<Integer> apparatusIdList);

    /**
     * 根据编号查询视频
     * @param videoId
     * @return
     */
    public Video queryVideoById(int videoId);

}
